#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main()
{
    string str1;
    cout<<"Please enter a number:"<<endl;
    cin>>str1;
    int n;
    n=str1.size();
    cout<<"The number is "<<n<<"digits"<<endl;
    reverse(str1.begin(),str1.end());
    cout<<str1<<endl;
    system("pause");
}